//
//  HomeHDFootReusableView.m
//  jingdongfang
//
//  Created by LJL on 2018/5/10.
//  Copyright © 2018年 BOE. All rights reserved.
//

#import "HomeHDFootReusableView.h"
#import "HomeHDClassificationVC.h"
@implementation HomeHDFootReusableView

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self.moreBtn setTitle:NSLocalizedString(@"home13", nil) forState:UIControlStateNormal];
    self.moreBtn.layer.cornerRadius = 2.5f;
    self.moreBtn.layer.masksToBounds = YES;
}

- (void)layoutSubviews
{
    [super layoutSubviews]; 
    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.moreBtn.bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)];
    CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
    maskLayer.frame = self.moreBtn.bounds;
    maskLayer.path = maskPath.CGPath;
    self.moreBtn.layer.mask = maskLayer;
}
- (IBAction)moreBtnClick:(id)sender
{
    [UIViewController ig_pushViewController:[[HomeHDClassificationVC alloc] init] animated:YES];
}


@end
